package org.argeproje.resim.ui.component.basic;


import org.argeproje.resim.proc.ColorConvertPR;
import org.argeproje.resim.ui.model.ComponentItem;

public class ColorConvertCI extends ComponentItem {
	private static final long serialVersionUID = 1;

	
	public ColorConvertCI()
	{		
		super();
		_name = "Gray\nScale";
		_description = "Converts color model to GRAY scale";
		initProc();
	}
	
	protected void initDescriptorList()
	{
		super.initDescriptorList();
	}

	@Override
	public Class<ColorConvertCI> getComponentClass() {
		// TODO Auto-generated method stub
		return ColorConvertCI.class;
	}

	public void initProc() {
		if(_processor == null)
		{
			_processor = new ColorConvertPR();
			((ColorConvertPR)_processor).setParameters(ColorConvertPR.GRAY);
		}
	}
	
	public void updateProc() {
		if(_processor == null)
		{
			_processor = new ColorConvertPR();
			((ColorConvertPR)_processor).setParameters(ColorConvertPR.GRAY);
		}
	}
}
